<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/base.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/queryTemplate.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/main.css" rel="stylesheet" type="text/css" />

<link href="<%=path%>/css/cmdb4.0.css" rel="stylesheet" type="text/css" />
<!-- 警告框样式 -->
<link href="<%=path%>/css/sweetalert.css" rel="stylesheet" type="text/css"/>
<!-- 警告框js -->
<script src="<%=path%>/js/sweetalert.min.js"></script>

<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.validate.min.js"></script>
</head>

<body>
	<div class="dis_pro">
		<input type="hidden" id="path" value="<%=path%>" /> <input
			type="hidden" id="option" /> <input type="hidden" id="opRow" />
	</div>
	<div class="tbtree">
		<div class="tbopera">
			<div class="tbbtns">
				<a href="#">刷新</a><a href="#" data-toggle="modal"
					onclick="add_or_update_template('')">添加新模板</a>
			</div>
			<script>
				function test() {
					var tmpName = "";
					// 新增查询模板
					$("#option").val("add");
					var initData = getClassFromServer(tmpName);

					var pick = $("#pickList").pickList(initData);
				}
			</script>

			<div class="tbsearch">
				<input  class="inptext" type="text" name="" id="" value="" /><a href="#">搜索</a>
			</div>
		</div>
		<div class="tbtable">
			<table id="templateData" width="100%" border="0" cellspacing="0"
				cellpadding="0">

			</table>
		</div>
	</div>

	<div id="os_copy" style="display:none">
		<div class="popdiv-mask">
			<div class="popdiv">
				<h2>编辑查询模板
				<a class="ico_close" href="javascript:void(0)"
					onclick="closePop(this)"></a></h2>
				<div class="popdiv_cnt">
					<ul class="ipfp" id="cp_os_ul">
						<li><b>模板名称</b>
							<div class="ipfpcn">
							<input type="text" id="tmp_in"
										class="inptext" placeholder="请填写模板名称"
										aria-describedby="basic-addon1" >
							</div>
						</li>
						<li>
							<div id="pickList"></div>
						</li>
						<!-- <li class="pop_error">错误提示</li> -->
					</ul>
				</div>
				<div class="popdiv_btn">
					<a class="btnblue bodrad5" href="javascript:void(0)" id="getSelected">确定</a>
				</div>
			</div>
		</div>
	
	</div>

	<script type="text/javascript" src="<%=path%>/js/pickList.js"></script>
	<script type="text/javascript" src="<%=path%>/js/template.js"></script>
	<!--footer-->
	<div class="jq_foot"><span class="mr30">版权所有 © 2016</span>QueryBuilder</div>
</body>
</html>
